package com.bonc.ioc.interceptor;


import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurerAdapter;

/**
 * @ClassName InterceptorConfig
 * @Description 注册拦截器
 * @Author 10983
 * @Date 2019/10/19 15:07
 * @Version 1.0
 */

@Configuration
public class InterceptorConfig extends WebMvcConfigurerAdapter {


//    @Resource
//    private PermissionUtils permissionUtils;

    //    @Bean
//    public CustomInterceptor getCustomInterceptor(){
//        System.out.println("注入了handler");
//        return new CustomInterceptor();
//    }
//    @Override
//    public void addInterceptors(InterceptorRegistry registry) {
//        registry.addInterceptor(new CustomInterceptor(permissionUtils))
//                .addPathPatterns("/population/**", "/realData/**", "/workData/**", "/propagateAlbum/edit")
//        ;
//    }

}
